package com.gigi.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("用户实体")
@Data
public class UserDO extends UserLoginRequest{

    private Long id;

    @NotNull(message = "类型不能为空")
    private Integer type;

    @NotNull(message = "工号/学号不能为空")
    private Long no;

    private Long classId;

    private String className;

    @NotBlank(message = "姓名不能为空")
    private String name;

    private String pic;

    @NotNull(message = "有效性不能为空")
    private Integer flag;

}
